<style>.footer.footer-home {display: none;} .swiper-slide > img { height: 100%; }</style>
<div class="header">
    <a href="javascript:history.go(-1); " class="return iconfont icon-shangyiye"></a>
    <div class="header-title">详情</div>
</div>
<link rel="stylesheet" href="resource/css/swiper.min.css" />
<script type="text/javascript" src="resource/js/swiper.min.js" ></script>
<div class="content content-bot content-product">

    <div class="product-img swiper-container">
        <ul class="swiper-wrapper">
            <?php if (is_array($output['images']) && $output['images']): ?>
                <?php foreach ($output['images'] as $k => $v): ?>
                    <li class="swiper-slide"><img src="<?php echo $v['img_path']; ?>" /></li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
        <div class="swiper-pagination"></div>
    </div>

    <div class="commodity-con">
        <div class="commodity-title"><?php echo $output['ticket']['tk_title']; ?></div>
        <div class="commodity-introduce"><?php echo $output['ticket']['tk_subtitle']; ?></div>
        <div class="commodity-grade fr">
            <i class="iconfont icon-xing"></i>
            <i class="iconfont icon-xing"></i>
            <i class="iconfont icon-xing"></i>
            <i class="iconfont icon-xing"></i>
            <i class="iconfont icon-xing"></i>
        </div>
        <?php if ($output['ticket']['tk_cate2'] == 10): ?>
        <div class="commodity-price1">
            免费畅游
        </div>
        <?php else: ?>
        <div class="commodity-price">
            <?php list($int, $float) = explode('.',$output['ticket']['tk_show_price']); ?>
            <b><samp>¥</samp><?php echo $int; ?>.<samp><?php echo $float; ?></samp></b><span>人均消费</span>
        </div>
        <?php endif; ?>
    </div>
    <a href="index.php?act=map&op=index&addr=<?php echo $output['ticket']['tk_full_addr']; ?>">
        <div class="product-location">
            <i class="iconfont icon-weizhi"></i>
            <span><?php echo $output['ticket']['tk_full_addr']; ?></span>
            <i class="iconfont icon-right_arraw fr"></i>
        </div>
    </a>
    <div class="product-con">
        <ul class="categoryson-title">
            <?php if ($output['ticket']['tk_cate2'] == 10): ?>
            <li class="active">景点介绍</li>
            <li>交通指南</li>
            <?php else: ?>
            <li class="active">老店故事</li>
            <li>菜品介绍</li>
            <?php endif; ?>
        </ul>
        <div class="commodity-block">
            <ul class="commodity-wraw">
                <div class="product-article">
                    <?php echo $output['ticket']['tk_detail']; ?>
                </div>
            </ul>
            <ul class="commodity-wraw hide">
                <div class="product-article">
                    <?php echo $output['ticket']['tk_tips']; ?>
                </div>
            </ul>
        </div>
    </div>
</div>
<div class="footer footer-product1">
    <ul>
        <li>
            <div><a href="tel:<?php echo $output['site_phone']; ?>"><i class="iconfont icon-shangchuanmoban"></i><br /><span>客服热线</span></a></div>
            <div><a class="coll"><i class="iconfont <?php echo $output['collect'] ? 'icon-aixin1' : 'icon-aixin2'; ?>"></i><br /><span>收藏</span></a></div>
        </li>
    </ul>
</div>
<script>
    $('.coll > .iconfont').click(function () {
        checkLogin();
        var _this = $(this);
        var type = _this.hasClass('icon-aixin1') ? 'un' : '';
        $.post('index.php?act=ticket&op=collect', {
            tk_id: <?php echo $output['ticket']['tk_id']; ?>,
            type: type
        }, function (ret) {
            ret.datas && (type === 'un' ? _this.removeClass('icon-aixin1').addClass('icon-aixin2') : _this.removeClass('icon-aixin2').addClass('icon-aixin1'));
        }, 'json');
    });

    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        loop: true,
        autoplay: 3000,
        autoplayDisableOnInteraction: false,
        onInit: function (swiper) {
            var h = swiper.width / 1.5;
            $('.swiper-container').height(h);
        }
    });

</script>